﻿using System.Windows.Controls;
using Shweet.Silverlight.ViewModels;

namespace Shweet.Silverlight.Views
{
    public partial class ShweetMain : UserControl
    {
        public ShweetMain()
        {
            InitializeComponent();
            Loaded += new System.Windows.RoutedEventHandler(ShweetMain_Loaded);
        }

        void ShweetMain_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            if (DataContext != null)
            {
                var smvm = DataContext as ShweetMainViewModel;
                smvm.RetrieveShweetMessages();   
            }
        }
    }
}


